package com.simdo.g768.Bean;

import java.util.ArrayList;
import java.util.List;

public class CellManageBean {
    public CellManageBean(int cellId, String text) {
        this.cellId = cellId;
        this.text = text;
        this.list = new ArrayList<>();
    }

    public int getCellId() {
        return cellId;
    }

    public int addData(String bean){
        if (list.size() == 3) return 1;
        for (String item : list) {
            if (item.equals(bean)) return 2;
        }
        list.add(bean);
        return 0;
    }

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    int cellId;

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    String text;
    List<String> list;
}
